<template>
  <div class="my-date">
    <CtkDateTimePicker
      label="请选择日期"
      :noLabel="true"
      locale="zh-cn"
      inputSize="sm"
      v-model="yourValue"
      buttonNowTranslation="现在"
      no-label
      :format="'YYYY-MM-DD HH'"
      :formatted="'YYYY-MM-DD HH:mm'"
      @input="change"
    />
  </div>
</template>

<script>
export default {
  name: '',
  data() {
    return {
      yourValue: '',
    };
  },
  methods: {
    change(val) {
      console.log(val, this.yourValue);
    },
  },
};
</script>

<style scoped lang="scss">
.my-date {
  margin: 50px;
  width: 300px;
}
</style>
